# blib/plugs/find.py
#
#

""" find the day/times a tag was mentioned. """

from blib import cmnds, Collection

thing = Collection()

def find(event):
    if not event.args or not event.args[0]: event.reply("find what?")
    target = event.args[0]
    for item in thing.find(target): event.reply("%s %s %s" % (item.day, item.time, item.txt))

cmnds.register("find", find)
